<template>
  <div class="page-contain">
    <div class="page-header">
      <div class="page-header-left">
        <div class="page-header-left-menu">
          <!-- <el-menu height="30px" background-color="none" :default-active="activeIndex" class="el-menu-demo"
          mode="horizontal" @select="handleSelect">
          <el-menu-item index="1">处理中心</el-menu-item>
          <el-submenu index="2">
            <template slot="title">我的工作台</template>
<el-menu-item index="2-1">选项1</el-menu-item>
<el-menu-item index="2-2">选项2</el-menu-item>
<el-menu-item index="2-3">选项3</el-menu-item>
<el-submenu index="2-4">
  <template slot="title">选项4</template>
  <el-menu-item index="2-4-1">选项1</el-menu-item>
  <el-menu-item index="2-4-2">选项2</el-menu-item>
  <el-menu-item index="2-4-3">选项3</el-menu-item>
</el-submenu>
</el-submenu>
<el-menu-item index="3" disabled>消息中心</el-menu-item>
<el-menu-item index="4"><a href="https://www.ele.me" target="_blank">订单管理</a></el-menu-item>
</el-menu> -->
          <div class="el-menu-demo">
            <el-link href="https://element.eleme.io" target="_blank">默认链接</el-link>
            <el-link type="primary">主要链接</el-link>
            <el-link type="success">成功链接</el-link>
            <el-link type="warning">警告链接</el-link>
            <el-link type="danger">危险链接</el-link>
            <el-link type="info">信息链接</el-link>
          </div>
        </div>
      </div>
      <div class="page-header-center">{{ message }}</div>
      <div class="page-header-right">
        <div class="page-right-menu">
          <span>11</span>
        </div>
      </div>
    </div>
    <div class="page-main">
      6666666
    </div>
  </div>
</template>

<script>

export default {
  name: 'testPage',
  computed: {
    message() {
      return '找不到网页！'
    }
  },
  data() {
    return {
      activeIndex: '1'
    };
  },
  methods: {
    handleSelect(key, keyPath) {
      console.log(key, keyPath);
    }
  }
}
</script>

<style lang="scss" scoped>
.page-contain {
  width: 100%;
  height: 100vh;
  overflow: hidden;
  display: flex;
  position: relative;
  flex-direction: column;
  background-color: #f2f4f7;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
  background: #f204f7;
  position: relative;

  &-left {
    // justify-content: flex-start;
    // display: flex;
    // flex: 1;
    // align-items: center;
    // height: 100%;

    &-menu {
      position: absolute;
      bottom: 10px;
    }
  }

  &-center {
    justify-content: center;
    display: flex;
    flex: 4;
    align-items: center;
    height: 100%;
    overflow: hidden;
    color: #362c36;
    width: calc(100% - 20%);
  }

  &-right {
    // justify-content: flex-end;
    // display: flex;
    // flex: 1;
    // align-items: center;
    // height: 100%;
  }
}

.page-right-menu {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.page-main {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  box-sizing: border-box;
  background-color: #362c36;
}

.el-menu-demo {
  position: relative;
  top: 0px;
}
</style>
